import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const FILE: AppRouteRecordRaw = {
  path: '/filemanage',
  name: 'filemanage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.fileManage',
    icon: 'icon-tool',
    requiresAuth: true,
    order: 1100,
  },
  children: [
    {
      path: '/file',
      name: 'File',
      component: () => import('@/views/file/list.vue'),
      meta: {
        locale: 'menu.file',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/systemfile',
      name: 'SystemFile',
      component: () => import('@/views/system-file/list.vue'),
      meta: {
        locale: 'menu.systemFile',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default FILE;
